Skip to content

fix: correct export name in TypeScript tool template generation#83

Merged
jmhbh merged 1 commit into
kagent-dev:mainfrom
intojhanurag:fix/typescript-tool-export-name
Sep 12, 2025
Merged

fix: correct export name in TypeScript tool template generation#83
jmhbh merged 1 commit into
kagent-dev:mainfrom
intojhanurag:fix/typescript-tool-export-name

Conversation

@intojhanurag

Copy link
Copy Markdown
Contributor

fix: #81
The template now uses {{.ToolNameCamelCase}} for the exported symbol.
Generated tools match the import name automatically.
Running npm run dev after adding a new tool works without modification.

Before:
Screenshot 2025-09-11 175829

After:
Screenshot 2025-09-11 221318

Signed-off-by: Anurag Ojha <aojharaj2004@gmail.com>
@intojhanurag intojhanurag force-pushed the fix/typescript-tool-export-name branch from 634c31d to d1a4d55 Compare September 11, 2025 17:09
@intojhanurag

Copy link
Copy Markdown
Contributor Author

Hey @rinormaloku , this Pr is ready for review

@jmhbh jmhbh merged commit 8e4a975 into kagent-dev:main Sep 12, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding MCP tool with an underscore in its name produces non‑compiling TypeScript

3 participants